package com.bigben.mapper;

import com.bigben.entites.CommDictionary;
import com.sun.org.glassfish.gmbal.ParameterNames;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CommDictionaryMapper {


    @Select("select cd.* from comm_dictionary cd where parentId = #{parentId}")
    @ResultMap("com.bigben.mapper.CommDictionaryMapper.BaseResultMap")
    List<CommDictionary> getDictByParentId(@Param("parentId") String parentId);

    @Select("select cd.* from comm_dictionary cd ")
    @ResultMap("com.bigben.mapper.CommDictionaryMapper.BaseResultMap")
    List<CommDictionary> getAll();

    @Update("")
    void update(List<CommDictionary> dicts);
}